$.ajax({
  url: "https://jsonplaceholder.typicode.com/todos/1",
  type: "GET",
  dataType: "text",
  success(data) {
    $("#result").html(data);
  },
  error(xhr, status, error) {
    console.error("Error:", error);
  },
});
